/**
 * The actual Player
 * 
 * @author Nirav
 */
public class Player {

	private String name;
	private Ship ship;
	private Skill skill;
	private int credits;

	/**
	 * Creates a new Player with the provided name and equal points for each
	 * skill
	 * 
	 * @param name
	 *            the name of the player
	 */
	public Player(String name) {
		this.setName(name);
		this.skill = new Skill();
		this.ship = new Ship();
	}

	/**
	 * Creates a new Player with the provided name and the provided points for
	 * each skill
	 * 
	 * @param name
	 *            the name of the player
	 * @param pilot
	 *            points alloted to pilot
	 * @param engineer
	 *            points alloted to engineer
	 * @param trader
	 *            points alloted to trader
	 * @param fighter
	 *            points alloted to fighter
	 */
	public Player(String name, int pilot, int engineer, int trader, int fighter) {

		this.setName(name);
		this.skill = new Skill(pilot, engineer, trader, fighter);
		this.credits = 1000;
		this.ship = new Ship(); 

	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
